package com.learning.spring.aop.aspectj.pointcut.expression.entity;

import com.learning.spring.aop.aspectj.pointcut.expression.annotation.LogEntity;

import java.util.StringJoiner;

/**
 * ClassName: User
 * Description: 实体
 * Date: 2019/4/21 15:35 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@LogEntity
public class User {
    private String name;

    public User(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", User.class.getSimpleName() + "[", "]")
                .add("name='" + name + "'")
                .toString();
    }
}